package cn.ssm.dao;

import java.util.List;



import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.ssm.pojo.Userrole;
import cn.ssm.pojo.User;

@Repository("userroleMapper")
public interface UserroleMapper {

	/*
	 * 查询user表的数量
	 * */
	public int selectUsersCount();

	
	/*
	 * 查询逆序的top1ID
	 * */
	public User selectUsersTopId(int count);


	/**
	 * 添加userrole
	 */
	public int InsertUserRole(Userrole ur);
	
	
	/*
	 *修改用户信息 
	 * */
	public int UpdateRole(@Param("userId")int upUId,@Param("roleId")int upRoleId);

	/*
	 *通过Id查询UserRole信息 
	 * */
	public Userrole selectUserRoleByid(int id);
	
	
	
}
